package it.trio.monopoly.domain;

public class Go2JailSquare extends Square {
	public static String SQUARE_NAME = "Go2JailSquare";
	Square jail;

	public Go2JailSquare(Square jail) {
		super(SQUARE_NAME);
		this.jail = jail;
	}
	
	@Override
	public void onLanding(Player player) {
		player.setCurrentSquare(jail);
	}

}
